package net.wanho.controller;

import lombok.RequiredArgsConstructor;
import net.wanho.dto.TransshipmentDTO;
import net.wanho.service.TransshipmentService;
import net.wanho.vo.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
@RequestMapping("/transshipment")
public class TransshipmentController {
    private final TransshipmentService transshipmentService;

    @GetMapping("/transshipment-page-list")
    private AjaxResult transshipmentPageList(@RequestParam(defaultValue = "1") Integer pageNum,
                                             @RequestParam(defaultValue = "5") Integer pageSize,
                                             TransshipmentDTO transshipmentDTO) {
        return AjaxResult.success(transshipmentService.transshipmentPageList(pageNum, pageSize,transshipmentDTO));
    }
}
